<?php if (!defined('THINK_PATH')) exit();?>
	
<!DOCTYPE html>
<html><head>
	    <meta charset="utf-8">
    <title>111111111111111</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="http://localhost/shop//Application/Admin/public/style/bootstrap.css" rel="stylesheet">
    <link href="http://localhost/shop//Application/Admin/public/style/font-awesome.css" rel="stylesheet">
    <link href="http://localhost/shop//Application/Admin/public/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="http://localhost/shop//Application/Admin/public/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="http://localhost/shop//Application/Admin/public/style/demo.css" rel="stylesheet">
    <link href="http://localhost/shop//Application/Admin/public/style/typicons.css" rel="stylesheet">
    <link href="http://localhost/shop//Application/Admin/public/style/animate.css" rel="stylesheet">
    
</head>

<body>
	<!-- 头部 -->
	<div class="navbar">
    <div class="navbar-inner">
        <div class="navbar-container">
            <!-- Navbar Barnd -->
            <div class="navbar-header pull-left">
                <a href="#" class="navbar-brand">
                    <small>
                            <img src="http://localhost/shop//Application/Admin/public/images/logo.png" alt="">
                        </small>
                </a>
            </div>
            <!-- /Navbar Barnd -->
            <!-- Sidebar Collapse -->
            <div class="sidebar-collapse" id="sidebar-collapse">
                <i class="collapse-icon fa fa-bars"></i>
            </div>
            <!-- /Sidebar Collapse -->
            <!-- Account Area and Settings -->
            <div class="navbar-header pull-right">
                <div class="navbar-account">
                    <ul class="account-area">
                        <li>
                            <a class="login-area dropdown-toggle" data-toggle="dropdown">
                                <div class="avatar" title="View your public profile">
                                    <img src="http://localhost/shop//Application/Admin/public/images/adam-jansen.jpg">
                                </div>
                                <section>
                                    <h2><span class="profile"><span><?php echo (session('name')); ?></span></span></h2>
                                </section>
                            </a>
                            <!--Login Area Dropdown-->
                            <ul class="pull-right dropdown-menu dropdown-arrow dropdown-login-area">
                                <li class="username"><a>David Stevenson</a></li>
                                <li class="dropdown-footer">
                                    <a href="/shop/index.php/Admin/Ad/logout">
                                            退出登录
                                        </a>
                                </li>
                                <li class="dropdown-footer">
                                    <a href="/admin/user/changePwd.html">
                                            修改密码
                                        </a>
                                </li>
                            </ul>
                            <!--/Login Area Dropdown-->
                        </li>
                        <!-- /Account Area -->
                        <!--Note: notice that setting div must start right after account area list.
                            no space must be between these elements-->
                        <!-- Settings -->
                    </ul>
                </div>
            </div>
            <!-- /Account Area and Settings -->
        </div>
    </div>
</div>
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			            <!-- Page Sidebar -->
            <div class="page-sidebar" id="sidebar">
                <!-- Page Sidebar Header-->
                <div class="sidebar-header-wrapper">
                    <input class="searchinput" type="text">
                    <i class="searchicon fa fa-search"></i>
                    <div class="searchhelper">Search Reports, Charts, Emails or Notifications</div>
                </div>
                <!-- /Page Sidebar Header -->
                <!-- Sidebar Menu -->
                <ul class="nav sidebar-menu">
                    <!--Dashboard-->
                          <li>
								<a href="#" class="menu-dropdown">
											<i class="menu-icon fa fa-gear"></i>
											<span class="menu-text">管理员管理</span>
											<i class="menu-expand"></i>
								</a>
                                              <ul class="submenu">
                                                        <li>
																	<a href="/shop/index.php/Admin/Admin/lst">
																				<span class="menu-text">管理员列表</span>
																				<i class="menu-expand"></i>
																	</a>
                                                            </li>
												</ul>                            
								</li>    

                          <li>
								<a href="#" class="menu-dropdown">
											<i class="menu-icon fa-file-text-o"></i>
											<span class="menu-text">商品模块</span>
											<i class="menu-expand"></i>
								</a>
                                              <ul class="submenu">
                                                        <li>
																	<a href="/shop/index.php/Admin/Cate/lst">
																				<span class="menu-text">分类管理</span>
																				<i class="menu-expand"></i>
																	</a>
                                                            </li>
												</ul>  
												
												 <ul class="submenu">
                                                        <li>
																	<a href="/shop/index.php/Admin/Brand/lst">
																				<span class="menu-text">品牌管理</span>
																				<i class="menu-expand"></i>
																	</a>
                                                            </li>
												</ul>  
												<ul class="submenu">
                                                        <li>
																	<a href="/shop/index.php/Admin/Goods/lst">
																				<span class="menu-text">商品管理</span>
																				<i class="menu-expand"></i>
																	</a>
                                                            </li>
															
															<li>
																	<a href="/shop/index.php/Admin/Type/lst">
																				<span class="menu-text">商品类型</span>
																				<i class="menu-expand"></i>
																	</a>
                                                            </li>	
												</ul>  
								</li>
						 <li> 
								<a href="#" class="menu-dropdown">
											<i class="menu-icon  fa-file-text-o"></i>
											<span class="menu-text">导航设置</span>
											<i class="menu-expand"></i>
								</a>
									  <ul class="submenu">
												<li>
															<a href="/shop/index.php/Admin/Nav/lst">
																		<span class="menu-text">导航管理</span>
																		<i class="menu-expand"></i>
															</a>
													</li>
													
										</ul>                            
								</li>
								<li> 
								<a href="#" class="menu-dropdown">
											<i class="menu-icon  fa-file-text-o"></i>
											<span class="menu-text">文章模块</span>
											<i class="menu-expand"></i>
								</a>
									  <ul class="submenu">
												<li>
															<a href="/shop/index.php/Admin/category/lst">
																		<span class="menu-text">栏目管理</span>
																		<i class="menu-expand"></i>
															</a>
													</li>
													<li>
															<a href="/shop/index.php/Admin/article/lst">
																		<span class="menu-text">文章管理</span>
																		<i class="menu-expand"></i>
															</a>
													</li>
										</ul>                            
								</li>
								
						<li> 
								<a href="#" class="menu-dropdown">
											<i class="menu-icon fa fa-gear"></i>
											<span class="menu-text">广告模块</span>
											<i class="menu-expand"></i>
								</a>
                                              <ul class="submenu">
                                                        <li>
																<a href="/shop/index.php/Admin/Adpos/lst">
																		<span class="menu-text">广告位管理</span>
																		<i class="menu-expand"></i>
																</a>
                                                            </li>
															<li>
																	<a href="/shop/index.php/Admin/Ad/lst">
																			<span class="menu-text">广告管理</span>
																			<i class="menu-expand"></i>
																	</a>
                                                            </li>
												</ul>                            
								</li>
								<li> 
									<a href="#" class="menu-dropdown">
												<i class="menu-icon fa fa-gear"></i>
												<span class="menu-text">推荐位</span>
												<i class="menu-expand"></i>
									</a>
									<ul class="submenu">
											<li>
														<a href="/shop/index.php/Admin/Recpos/lst">
																	<span class="menu-text">推荐位列表</span>
																	<i class="menu-expand"></i>
														</a>
												</li>
									</ul>                            
								</li>

                          <li> 
								<a href="#" class="menu-dropdown">
											<i class="menu-icon fa fa-gear"></i>
											<span class="menu-text">会员模块</span>
											<i class="menu-expand"></i>
								</a>
                                              <ul class="submenu">
                                                      
															<li>
																	<a href="/shop/index.php/Admin/MemberLevel/lst">
																				<span class="menu-text">会员等级</span>
																				<i class="menu-expand"></i>
																	</a>
                                                            </li>
												</ul>                            
								</li>

                          <li>
								<a href="#" class="menu-dropdown">
											<i class="menu-icon fa fa-gear"></i>
											<span class="menu-text">系统管理</span>
											<i class="menu-expand"></i>
								</a>
										  <ul class="submenu">
													<li>
																<a href="/shop/index.php/Admin/Config/config">
																			<span class="menu-text">站点配置</span>
																			<i class="menu-expand"></i>
																</a>
														</li>
														<li>
																<a href="/shop/index.php/Admin/Config/lst">
																			<span class="menu-text">配置列表</span>
																			<i class="menu-expand"></i>
																</a>
														</li>
											</ul>                            
								</li>								
					</ul>
                <!-- /Sidebar Menu -->
            </div>
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li class="active">广告列表</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="品牌列表" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '/shop/index.php/Admin/Ad/add'"> <i class="fa fa-plus"></i> Add
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <table class="table table-bordered table-hover">
                        <thead class="">
                            <tr>
                                <th class="text-center"  width="10%" >ID</th>
										<th align="left">广告名称</th>
										<th align="left">广告类型</th>
										<th align="left">广告是否启用</th>
										<th align="left">所属广告位</th>
                                <th class="text-center" width = "15%">操作</th>
                            </tr>
                        </thead>
                        <tbody>
						<?php if(is_array($lis)): $i = 0; $__LIST__ = $lis;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                                <td align="center" ><?php echo ($vo["id"]); ?></td>
                                <td align="left"><?php echo ($vo["adname"]); ?></td>
								 <td align="left"><?php if($vo['type']==1): ?>图片广告<?php else: ?>动画广告<?php endif; ?></td>
								  <td align="left"><?php if($vo['ison']==1): ?>启用    <?php else: ?>不启用<?php endif; ?></td>
								  <td align="left"><?php echo ($vo["pname"]); ?></td>
                                <td align="center" >
                                    <a href="/shop/index.php/Admin/Ad/edit/id/<?php echo ($vo["id"]); ?>/catename/<?php echo ($vo["brand_name"]); ?>" class="btn btn-primary btn-sm shiny">
                                        <i class="fa fa-edit"></i> 编辑
                                    </a>
                                    <a href="/shop/index.php/Admin/Ad/del/id/<?php echo ($vo["id"]); ?>" onClick="warning('确实要删除吗', '/shop/index.php/Admin/Ad/del/id/<?php echo ($vo["id"]); ?>')" class="btn btn-danger btn-sm shiny">
                                        <i class="fa fa-trash-o"></i> 删除
                                    </a>
                                </td>
								
                            </tr><?php endforeach; endif; else: echo "" ;endif; ?>

 
                                                    </tbody>
													
                    </table>
					<div align="right"><?php echo ($page); ?></div>
                </div>
                <div>
                	                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="http://localhost/shop//Application/Admin/public/style/jquery_002.js"></script>
    <script src="http://localhost/shop//Application/Admin/public/style/bootstrap.js"></script>
    <script src="http://localhost/shop//Application/Admin/public/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="http://localhost/shop//Application/Admin/public/style/beyond.js"></script>
    


</body>

</html>